#pragma once

#include <machine/runtime.h>
#include <sys/mta_task.h>

class StopWatch
{
    private:
        int totalTicks;
        int tick0;
        bool running;

    public:
        StopWatch();
        bool start();
        bool stop();
        void toggle();
        void clear();
        double elapsed();
};
